﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>增加用户</title>
    <link rel="stylesheet" href="css_js/css/bootstrap.min.css" />
    <!-- <link rel="stylesheet" href="dist/css/pass.css" /> -->
    <link rel="stylesheet" href="dist/css/add_user.css" />
    <link rel="stylesheet" href="dist/css/common.css" />
    <link rel="stylesheet" href="./css_js/layui/css/layui.css">
    <!--<script type="text/javascript" charset="utf-8" src="cordova.js"></script>-->
</head>
<body ng-app="App" ng-controller="add_userCtrl">
    <div class="bg_color">
        <nav class="navbar text-center">
            <div class="nav_body">
                <img ng-click="go_back()" class="pull-left btn_top_left" src="dist/images/point/left.png">
                <span class="tit_title">添加用户</span>
            </div>
        </nav>
        <!-- <section>
            <form class="form-horizontal">
                <div class="original_form">
                    <label class="col-xs-3 span_list_one control-label">用户账号</label>
                    <input type="text" ng-model="addobj.id" class="form-control input_tele original_pass" />
                </div>
                <div class="new_form">
                    <label class="col-xs-3 span_list_one control-label">用户昵称</label>
                    <input type="text" ng-model="addobj.name" class="form-control input_tele original_pass" />
                </div>
                <div class="new_form">
                    <label class="col-xs-3 span_list_one control-label">用户电话</label>
                    <input type="text" ng-model="addobj.tele" class="form-control input_tele original_pass" />
                </div>
                <div class="form-group">
                    <label class="bold_label control-label col-xs-3">用户角色</label>
                    <select ng-model="addobj.roleid" class="form-control">
                        <option value="0">无角色</option>
                        <option value="{{role.id}}" ng-repeat="role in constList">{{role.name}}</option>
                    </select>
                </div>
                <div class="form-group">
                    <label class="bold_label control-label col-xs-3">用户照片</label>
                    <label>
                        <span>
                            <img id="usrPic" class="bg_user user_pic" src="dist/images/user/user_big.png" alt="" />
                        </span>
                        <span>
                            <input id="file" type="file" name="file" accept="image/*"/>
                        </span>
                        </label>
                    </label>
                </div>
                <div class="margin_36">
                    <input type="submit" class="btn_args pass_green" value="确认添加" ng-click="sure_add()">
                </div>
            </form>
        </section> -->
        <div>
            <div class="addRoleForm">
                <div class="input-group">
                    <span class="input-group-addon">用户账号</span>
                    <input type="text"
                           class="form-control"
                           placeholder="用户账号"
                           ng-model="addobj.id"
                           >
                </div>
                <hr>
                <div class="input-group">
                    <span class="input-group-addon">用户昵称</span>
                    <input type="text" class="form-control" placeholder="用户昵称" aria-describedby="basic-addon1" ng-model="addobj.name" maxlength="15">
                </div>
                <hr>
                <div class="input-group">
                    <span class="input-group-addon">用户电话</span>
                    <input type="text"
                           class="form-control"
                           placeholder="用户电话"
                           ng-model="addobj.tele"
                           value="{{addobj.tele}}"
                           maxlength="11">
                </div>
                <hr>
                <div class="form-group">
                    <label class="bold_label control-label col-xs-4">用户角色</label>
                    <select ng-model="addobj.roleid" class="form-control">
                        <option value="0">无角色</option>
                        <option value="{{role.id}}" ng-repeat="role in constList">{{role.name}}</option>
                    </select>
                </div>
                <hr>
                <div class="form-group">
                    <label class="bold_label control-label col-xs-4">用户照片</label>
                    <label>
                        <span>
                            <img id="usrPic" class="user-photo" src="dist/images/user/user_big.png" alt="" />
                        </span>
                        <span>
                            <input id="file" type="file" name="file" accept="image/*" style="display: none">
                        </span>
                        </label>
                    </label>
                </div>
                <!-- <hr>
                        <div class="input-group">
                            <span class="input-group-addon" >项目描述</span>
                            <textarea class="form-control" rows="5" ng-model="addobj.des"></textarea> -->
                <!-- <input type="text" class="form-control" placeholder="角色描述" aria-describedby="basic-addon1" ng-model="roleDescription"> -->
                <!-- </div> -->
                <span class="errMsg" ng-show="errMsg">{{errMsg}}</span>
                <button type="button" id="myButton" data-loading-text="提交中.." class="btn btn-success" autocomplete="off" ng-click="sure_add()">
                    添加
                </button>
            </div>
        </div>
    </div>
    <script type="text/javascript" src="./css_js/layui/layui.all.js"></script>
    <script src="css_js/js/jquery.min.js"></script>
    <script src="css_js/js/angular.min.js"></script>
    <script src="css_js/js/angular-cookies.min.js"></script>
    <script src="css_js/js/bootstrap.min.js"></script>
    <script src="dist/controller/config.js"></script>
    <script src="dist/controller/add_userCtrl.js"></script>
    <script src="css_js/layui/layui.all.js"></script>
</body>
</html>